package cn.sc.summer.exception.exceptions;

import cn.sc.summer.exception.base.BaseException;
import cn.sc.summer.exception.enums.CommonExceptionEnum;
import cn.sc.summer.constant.util.FormatUtil;
import lombok.Getter;

/**
 * 接口:公共异常类
 *
 * @author a-xin
 * @date 2023/1/19 2:16 PM
 */
@Getter
public class NotFindGirlFriendException extends BaseException {

    private static final long serialVersionUID = 1L;

    public NotFindGirlFriendException(String pattern, Object... message) {
        super(FormatUtil.formatLogStr(pattern, message));
    }

    public NotFindGirlFriendException(String message, Throwable e) {
        super(message, e);
    }

    public NotFindGirlFriendException(Throwable e, String pattern, Object... message) {
        super(FormatUtil.formatLogStr(pattern, message), e);
    }

    public NotFindGirlFriendException(int code, String pattern, Object... message) {
        super(FormatUtil.formatLogStr(pattern, message), code);
    }

    public NotFindGirlFriendException(CommonExceptionEnum exceptionTypeEnum) {
        super(exceptionTypeEnum.getMessage(), exceptionTypeEnum.getCode());
    }

    public NotFindGirlFriendException(CommonExceptionEnum exceptionTypeEnum, String pattern, Object... message) {
        super(FormatUtil.formatLogStr(pattern, message), exceptionTypeEnum.getCode());
    }

}
